/**
 *这里采用手动配置路由 也可在config配置自动注册
 */
export default [
    /*//用户相关
    {
        //用户登录注册忘记密码等
        path: '/auth',
        component: '../layouts/Users',
        routes: [
            { path: '/auth', redirect: '/auth/login' },
            { path: '/auth/login', name: '登录', component: './Auth/Login' },
            { path: '/auth/register', name: '注册', component: './Auth/Register' },
            { path: '/auth/forget', name: '忘记密码', component: './Auth/Forget' },
        ],
    },

    {
        path: '/',
        component: '../layouts/Basics',
        routes: [
            { path: '/', redirect: './home' },
            { path: '/home', name: '首页', component: './Home/Home' },

            { path: '/user/account', name: '账号管理', component: './User/Account' },
            { path: '/user/auth', name: ' 权限管理', component: './User/auth' },

            { path: '/operate/log', name: ' 日志管理', component: './Operate/LogManege' },
            { path: '/operate/workorder', name: ' 工单管理', component: './Operate/WorkOrder' },
            { path: '/operate/news', name: ' 消息管理', component: './News/News' },
            { path: '/a', name: ' 消息管理', component: './aa/index' },
        ],
    },*/
    {
        //第一层路径
        path: '/',
        //外层框架模板（相对于page位置）
        component: '../layouts/index',
        routes: [
            //路径redirect转发
            { path: '/', redirect: './home' },
            //component组件所在位置
            { path: '/home', name: '首页', component: './index' },
        ],
    },
];


